﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using Utils;

namespace Business
{
    public class CollectionRepository : BaseBusiness
    {
        public crm_collection CollectionGetById(int id)
        {
            DB.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues, DB.crm_collections);
            return DB.crm_collections.FirstOrDefault(p => p.collection_id == id);
        }
    }
}
